<!DOCTYPE html>
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <title>Token Sale</title>

    <!-- Styles -->
    <link href="./action/core.min.css" rel="stylesheet">
    <link href="./action/blockchain.min.css" rel="stylesheet">
    <link href="./action/style.css" rel="stylesheet">

    <link rel="shortcut icon" type="image/png" href="./img/favicon.png"/>
    <style type="text/css">
      .form-group input,
      .form-group textarea {
          padding: .5rem .5rem .5rem 1rem;
          border: 1px solid #D61D1D;
          outline: none;
          box-shadow: inset 5px 0 0 #D61D1D;
      }

      .form-group input:valid,
      .form-group textarea:valid {
          border-color: #429032;
          box-shadow: inset 5px 0 0 #429032;
      }

      .form-group input:invalid,
      .form-group textarea:invalid {
          border-color: #D61D1D;
          box-shadow: inset 5px 0 0 #D61D1D;
      }
    </style>
    <!-- <script src="./action/swal.min.js"></script> -->
</head>

  <body class="mh-fullscreen bg-img body-scrolled" data-aos-easing="ease" data-aos-duration="1500" data-aos-delay="0">

<main class="main-content">
  <section class="section" style="background:none;">
    <div class="container">

    <div class="row align-items-center">

      <div class="col-12 col-md-5 text-center">

        <div class="card card-shadowed p-40 mb-0 bg-gray">
              <div class="pricing-1">
                <p class="plan-name-selected bg-warning mb-0">Public Presale - Now Live!</p>
                <h2 class="price text-warning">45<span class="price-unit">%</span></h2>
                <h5>Bonus</h5>
                <ul>
                  <li>1 ETH = 6,250 MFG</li>
                  <li>No Minimum</li>
                  <li><small><i>Amount subject to change to correlate with liquidity of ETH</i></small></li>
                  <li><small><i>MFG Tokens will be released after the Main Token Sale</i></small></li>
                  <li><small><i>1 MFG ~ $0.20</i></small></li>
                </ul>
                <div class="date-name" style="border-top: 1px solid #f1f2f3;border-bottom: none;">
                  <p class="">Ends Feb. 15, 2018 at 12AM PST</p>
                  <div class="opacity-50 countdown countdown-sm px-20" data-countdown="2018/2/15"><div class="row gap-items-3"><div class="col"><h5>05</h5><small>Days</small></div><div class="col"><h5>01</h5><small>Hour</small></div><div class="col"><h5>38</h5><small>Minutes</small></div><div class="col"><h5>54</h5><small>Seconds</small></div></div></div>
                </div>
              </div>
        </div>
    </div>
    <div class="col-12 col-md-6 offset-md-1">

    <div class="card card-shadowed p-50 mb-0">
      <h5 class="text-uppercase text-center mb-0 text-center">Join MFG Token Sale</h5>
      <hr class="w-30">
      <form class="form-type-material" action="##" method="get">

        <div id="email_address_container" class="form-group">
          <label>Email Address 
            <!-- <a href="##" data-toggle="tooltip" trigger="hover click" title="" data-original-title="Always use the same email address on our forms"><i class="fs-16 fa fa-info-circle"></i></a> -->
          </label>
          <input id="email_address" name="email_address" type="email" required class="form-control form-control-lg" placeholder="Email Address">
          <div id="email_address_message" style="color:#f00;padding-left:20px;" class="form-group"></div>
        </div>

        <div class="form-group">
            <label>Are you a Buyer or Manufacturer? 
              <!-- <a href="##" data-toggle="tooltip" trigger="hover click" title="" data-original-title="Buyers purchase parts &amp; products from Manufacturers. A Manufacturer produces and supplies parts &amp; products to Buyers."><i class="fs-16 fa fa-info-circle"></i></a> -->
            </label>
            <select name="Member_Type_Sub" class="form-control form-control-lg" id="Member_Type_Sub">
                 <option value="" selected="">Select One</option>
                 <option value="Buyer">I am a Buyer</option>
                 <option value="Manufacturer">I am a Manufacturer</option>
            </select>
        </div>

        <div id="sending_wallet_address_container" class="form-group">
          <label>Sending Wallet Address 
            <!-- <a href="##" data-toggle="tooltip" trigger="hover click" title="" data-original-title="This is your preferred wallet to send ethereum from. It can come from an exchange or any other ERC-20 compatible wallets containing the Ether amount"><i class="fs-16 fa fa-info-circle"></i></a> -->
          </label>
          <input required id="sending_wallet_address" name="sending_wallet_address" type="text" class="form-control form-control-lg" placeholder="Use Preferred ETH Wallet Address">
          <div id="sending_wallet_address_message" class="form-group"></div>
        </div>

        <div id="receiving_wallet_address_container" class="form-group">
          <label>Receiving Wallet Address </label>
          <input required id="receiving_wallet_address" name="receiving_wallet_address" type="text" class="form-control form-control-lg" placeholder="Must be ERC-20 Compatible">
          <div id="receiving_wallet_address_message" class="form-group"></div>
        </div>
        <div id="tos_container">
          <label class="custom-control custom-checkbox">
            <input id="tos" name="tos" type="checkbox" class="custom-control-input">
            <input type="checkbox" class="control-indicator" name="checked">
            <span class="custom-control-description">I agree to <a class="text-primary" target="_blank" href="https://blockchain.syncfab.com/SyncFab_MFG_Terms_Of_Sale.pdf">Terms of Sale</a>, <a class="text-primary" target="_blank" href="https://blockchain.syncfab.com/terms-of-use">Terms of Use</a>, &amp; <a class="text-primary" target="_blank" href="https://blockchain.syncfab.com/privacy-policy">Privacy Policy</a></span>
          </label><div id="tos_message" class="form-group"></div>
        </div>

        <br>
        <input type="submit" disabled name="button" id="page_one_continue" class="btn btn-bold btn-xl btn-block btn-warning" value="Continue">
      </form>

    </div>
  </div>
</div>
</div>
</section>

</main>

<script type="text/javascript" src="./js/jquery-1.11.1.js"></script>
<script type="text/javascript">
  function checkInput () {
    var emailExp = /^([\w-_]+(?:\.[\w-_]+)*)@((?:[a-z0-9]+(?:-[a-zA-Z0-9]+)*)+\.[a-z]{2,6})$/i;
    if (!emailExp.test($('#email_address').val())) {
      return false;
    }

    if (!$('#Member_Type_Sub').val()) return false;

    if (!$('#sending_wallet_address').val()) return false;

    if (!$('#receiving_wallet_address').val()) return false;

    if (!$('.control-indicator')[0].checked) return false;

    return true;
  }

  [$('#email_address'), $('#Member_Type_Sub'), $('#sending_wallet_address'), $('#receiving_wallet_address'), $('.control-indicator')].forEach(function(val) {
    val.on('change', function() {
      if (checkInput()) {
        $('#page_one_continue').attr('disabled', false);
        $('.form-type-material').attr('action', './puchase.html');
      } else {
        $('#page_one_continue').attr('disabled', true);
        $('.form-type-material').attr('action', '##');
      }
    })
  })
</script>
</body></html>